package com.wiki.utils.commonRequest.doc;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class DocSaveReq {
    /**
     * id
     */
    private Long id;

    /**
     * 电子书id
     */
    @NotEmpty(message = "电子书id属性非空")
    private Long ebookId;

    /**
     * 父id
     */
    @NotEmpty(message = "父id属性非空")
    private Long parent;

    /**
     * 名称
     */
    @NotEmpty(message = "名称属性非空")
    private String name;

    /**
     * 内容
     */
    @NotEmpty(message = "内容属性非空")
    private String content;

    /**
     * 顺序
     */
    @NotEmpty(message = "顺序属性非空")
    private Integer sort;

    /**
     * 阅读数
     */
    private Integer viewCount;

    /**
     * 点赞数
     */
    private Integer voteCount;

}
